﻿using System;

namespace Fast
{
    /// <summary>
    /// Fast框架异常
    /// </summary>
    [SkipScan]
    public class FastException : Exception
    {
        /// <summary>
        /// 错误码
        /// </summary>
        public object Code { get; set; }

        public FastException() { }

        public FastException(string message)
            : base(message)
        {
        }

        public FastException(string message, object code)
            : base(message)
        {
            Code = code;
        }

        public FastException(string message, Exception innerException)
            : base(message, innerException)
        {

        }
        public FastException(string message, Exception innerException, object code)
            : base(message, innerException)
        {
            Code = code;
        }
    }
}
